package dk.soegaard.simpleuddibrowser;

import java.io.ByteArrayOutputStream;

import javax.xml.transform.TransformerException;

import junit.framework.TestCase;

public class GetDetailHandlerTest extends TestCase {

	public void testGetBusinessDetail() throws TransformerException {
		String id = "uddi:0415e560-6d62-11de-a98f-77bb1111a97f";
		GetDetailHandler handler = new GetDetailHandler();
		ByteArrayOutputStream resultStream = new ByteArrayOutputStream();
		handler.getBusinessDetail(id, resultStream);
		System.out.print(resultStream.toString());
	}
	
	public void testGetServiceDetail() throws TransformerException {
		String id = "uddi:0415e560-6d62-11de-a98f-77bb1111a97f";
		GetDetailHandler handler = new GetDetailHandler();
		ByteArrayOutputStream resultStream = new ByteArrayOutputStream();
		handler.getServiceDetail(id, resultStream);
		System.out.print(resultStream.toString());
	}

	public void testGetBindingDetail() throws TransformerException {
		String id = "uddi:0533b170-6d62-11de-a98f-77bb1111a97f";
		GetDetailHandler handler = new GetDetailHandler();
		ByteArrayOutputStream resultStream = new ByteArrayOutputStream();
		handler.getBindingDetail(id, resultStream);
		System.out.print(resultStream.toString());
	}

	
}
